import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
 
//引入router
import router from './router'

//引入封装好的axios
import axios from './utils/axios'

//引入store
//import store from './store'

//引入mock
import './mock/index'

//引入组件样式
import 'vant/lib/index.css';

//引入你需要的组件
import { Button,Tabbar,TabbarItem,Toast,Form,Field,CellGroup,Swipe,SwipeItem,ActionBar,ActionBarIcon,ActionBarButton,Empty,Cell } from 'vant';



const app = createApp(App)

 //挂载路由
 app.use(router)

 //注册需要的组件
 app.use(Button);
 app.use(Tabbar);
 app.use(TabbarItem);
 app.use(Toast);
 app.use(Form);
 app.use(Field);
 app.use(CellGroup);
 app.use(Swipe);
 app.use(SwipeItem);
 app.use(ActionBar);
 app.use(ActionBarIcon);
 app.use(ActionBarButton);
 app.use(Empty);
 app.use(Cell);

 //挂载axios
app.config.globalProperties.$axios = axios
app.mount('#app')
